package com.yqg.protection.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yqg.protection.cover.SystemConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * equipment_unit 实体类
 *
 * @author zxf
 * @since 2024-09-11
 */
@Getter
@Setter
@TableName("equipment_unit")
@ApiModel(value = "EquipmentUnit对象", description = "")
public class EquipmentUnit implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "ID", index = 0)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty(value = "部件名称", index = 1)
    @ApiModelProperty("部件名称")
    private String partName;

    @ExcelProperty(value = "部件类型ID", index = 2)
    @ApiModelProperty("部件类型")
    private Long partTypeId;

    @ExcelProperty(value = "类型名称", index = 3)
    @TableField(exist = false)
    @ApiModelProperty("类型名称")
    private String partTypeName;

    @ExcelProperty(value = "设施连接设备ID", index = 4)
    @ApiModelProperty("设施连接设备")
    private Long equipmentInputStoreId;

    @ExcelProperty(value = "设备识别码", index = 5)
    @TableField(exist = false)
    @ApiModelProperty("设备识别码")
    private String equipmentId;

    @ExcelProperty(value = "设备名称", index = 6)
    @TableField(exist = false)
    @ApiModelProperty("设备名称")
    private String equipmentName;

    @ExcelProperty(value = "单位ID", index = 7)
    private Long clientId;

    @ExcelProperty(value = "单位名称", index = 8)
    @TableField(exist = false)
    @ApiModelProperty("单位名称")
    private String clientName;

    @ExcelProperty(value = "状态编号", index = 9)
    @ApiModelProperty("状态")
    private String warnStateNum;

    @ExcelProperty(value = "状态", index = 10)
    @TableField(exist = false)
    private String warnStateName;

    @ExcelProperty(value = "部件型号", index = 11)
    @ApiModelProperty("部件型号")
    private String partModel;

    @ExcelProperty(value = "安装位置", index = 12)
    @ApiModelProperty("安装位置")
    private String installSite;

    @ExcelProperty(value = "部件区号", index = 13)
    @ApiModelProperty("部件区号")
    private String partAreaCode;

    @ExcelProperty(value = "部件回路号", index = 14)
    @ApiModelProperty("部件回路号")
    private String partLoopCode;

    @ExcelProperty(value = "部件位号", index = 15)
    @ApiModelProperty("部件位号")
    private String partBitCode;

    @ExcelProperty(value = "设施类型", index = 16, converter = SystemConverter.class)
    private Integer systemId;

    @ExcelIgnore
    private Integer isDelete;

}
